<?php
$mVoucherCooker = new BAVoucherCooker();
$mPointCooker = new BAMemberPointCooker();
?>

<table class="table table-hover">
    <colgroup>
        <col class="span2">
        <col class="span6">
        <col class="span2">
    </colgroup>
    <thead>
        <tr>
            <th><?php echo '属性'; ?></th>
            <th><?php echo '内容'; ?></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <?php echo '添加方式'; ?>
            </td>
            <td>
                <?php
                $permitData = BAVoucherCooker::getPermitList();
                echo CHtml::activeDropDownList($model, $permitField, $permitData, array('required' => true));
                ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php echo '申请人资格'; ?>
            </td>
            <td>
                <?php
                $roleData = BARoleCooker::getAllSpaceRoleData();
                echo CHtml::activeDropDownList($model, $roleIdField, $roleData, array('required' => true));
                ?>
            </td>
        </tr>  
        <tr>
            <td>
                <?php echo '申请截止时间'; ?>
            </td>
            <td>
                <?php
                echo CHtml::activeTextField($model, $expireTimeField, array('placeholder' => 'yyyymmdd[hh],默认一直有效', 'required' => TRUE));
                ?>
            </td>
        </tr>
    </tbody>
</table>
<div class="row-fluid span3 pull-right">
    <?php
    echo $control->getAjaxLink('保存申请许可', array(
        'cooker' => 'BAVoucherCooker@addApplyPermit',
        'htmlOptions' => array('class' => 'btn btn-success')
    ));
    ?>
</div>

